str = '      abc'
str2 = str.replace(/  /g, ' ')
console.log(str2)
console.log('len: ',str2.length)
